package com.example.admin.service;

import com.example.admin.model.User;
import org.springframework.data.domain.Page;

import java.util.List;

public interface UserService {

    List<User> getAllUsers();

    Page<User> getList(String firstName, String lastName, int age, int page, int size);

    List<User> findByName(String name);

    List<Object> getBasicList();

    User saveUser(User user);

    boolean updateUser(Long id, User user);

    boolean deleteUser(Long id);


}
